package top.deepdesigner.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.deepdesigner.pojo.DtsPermission;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsPermissionMapper extends BaseMapper<DtsPermission> {

  void insertAll(@Param("roleId") Integer roleId, @Param("permission") List<String> deletedPermission);

  void updateToDeletedAll(@Param("roleId") Integer roleId, @Param("permission") List<String> hasDeleted);

  void updateToNotDeletedAll(@Param("roleId") Integer roleId, @Param("permission") List<String> notDeleted);
}
